<%@ include file="/WEB-INF/view/include.jsp"%>
<div id="MainDetails">	

	<fieldset>
		 	<legend><spring:message code="ctn.vvc.can.label" /></legend>
	</fieldset>
	<div class="t_form-top">
		<div class="t_select_employee">
			<input type="text" style="display:none;" disabled="disabled" id="vvcEmployeeId" name="vvcEmployeeId" value="${vvCancelModel.vvcEmployeeId}"	readonly="readonly" />
			<label for="empName"><spring:message code="ctn.visitor.name" /></label>
			<input type="text" id="empName" name="empName"  disabled="disabled" />
		</div>
	</div>
	<div class="t_form-left">
		
		<label for="empPermitNo"><spring:message code="ctn.employee.perm.no" /></label>
		<input type="text" id="empPermitNo" name="empPermitNo" disabled="disabled" />
		
		<label for="empIssueDate"><spring:message code="ctn.employee.issue.date" /></label>
		<input type="text" id="empIssueDate" name="empIssueDate" disabled="disabled" />
	</div>
	
	<div class="t_form-right">
	
		<label for="empStatus"><spring:message code="ctn.employee.status" /></label>
		<input type="text" id="empStatus" name="empStatus" disabled="disabled" />
		
		<label for="empExpDate"><spring:message code="ctn.employee.exp.date" /></label>
		<input type="text" id="empExpDate" name="empExpDate" disabled="disabled" />
	</div>
	<fieldset>
	 	<legend><spring:message code="ctn.init.visitor.leave" /></legend>
	</fieldset>
	
	<div class="t_form-top">
		<fieldset>
			<div class="radiobuttons" id="radioButtonsMain">
				<form:label path="vvcExitMode"><spring:message code="ctn.vvc.exit.mode.label" /></form:label>
				<form:radiobuttons path="vvcExitMode" onchange="onCancelTypeChange(this);" disabled="true" items="${exitModes}" itemLabel="displayLabel" itemValue="id"/>
			</div>
		</fieldset>
	</div>
	
	<c:if test="${vvCancelModel.vvcExitMode=='STATUS_YES'}">
			<div id="exitDocumentContainer"  class="t_form_middle">
				<label for="exitDocumentFileName"><spring:message code="label.exit.document" /><span class="required-field"><spring:message code="label.field.required" /></span></label>
				<input id="exitDocumentFileName" type="text" value="${exitDocument.fileName}" disabled="disabled"/>
				<a class="pdfimageattachment" href="file/${exitDocument.id}"  style="width:15px;height:15px;display:inline; background: none;" title="${exitDocument.fileName}"><img alt="View" src="resources/images/common/show_img_icon.jpg" ></a>
				<div  class="t_pop_up">
					<div id="${exitDocument.id}">
					<img src="file/${exitDocument.id}" />
					</div>
				</div>
			</div>
		</c:if>
	
	<div class="t_form-left">
		
		<form:label path="vvcExitDate" ><spring:message code="ctn.visa.exit.date" /></form:label>
        <form:input path="vvcExitDate" cssClass="t_form-fld-disable_calendar" disabled="true" style="*-float:left;"  />
	
		<form:label path="vvcRemarks" ><spring:message code="ctn.vvc.remarks" /></form:label>
        <form:textarea disabled="true" path="vvcRemarks"/>
	</div>
</div>